package com.ceres.system.dao;

import com.ceres.system.pojo.Menu;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Component
public interface MenuMapper extends Mapper<Menu> {

    @Select("select * from t_menu where category=#{category}")
    List<Menu> findAllByCategory(String category);

}
